<?php if (hasPermission("namespaces.object.create.blogcomment")): ?>
	<form action="<?php echo Gene::makeLink($object) ?>/new/blogcomment" method="post">
	
	<fieldset>
	<legend>Add Comment</legend>
	
	<?php if ($draft): ?>
		<input type="hidden" name="draftid" value="<?php echo $draft['draft_id'] ?>" />
	<?php endif; ?>
	
	<?php if (!$loggedin): ?>
		<?php $this->display ("objects/guest") ?>
	<?php endif; ?>
	
	<p class="fieldlabel"><label for="formobjcontent">Your Comments:</label></p>
	<p class="field"><?php $this->display('objects/enhancedinput', array('rows' => 12, 'required' => true)) ?></p>
	
	<p class="formcontrols">
	<input type="submit" value="Add Comment" class="btn_focus" />
	
	<?php if ($draft || getUserProperty('drafts') < Gene::getSetting('maximum_drafts')): ?>
		<input type="submit" name="draft" value="Save Draft" class="btn_minor skipcheck" />
	<?php endif; ?>
	</p>
	
	</fieldset>
	
	</form>
<?php endif; ?>